﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;

namespace FIS.iDET.TemplateCreator
{
    public partial class FormAbout : Form
    {
        public FormAbout()
        {
            InitializeComponent();
        }

        private void FormAbout_Load(object sender, EventArgs e)
        {
            LabelUserName.Text = GlobalConstants.Username;
            LabelProductID.Text = RegistryService.GetValue(GlobalConstants.REGISTRY_SERIAL_NUMBER_KEY);
            label1.Text = GlobalConstants.stringVersion;
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void FormAbout_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.R)
            {
                MessageBox.Show("Welcome to the developer world !");
                Process.Start("http://revo21studio.com/");
            }
            else if (e.KeyCode == Keys.I)
            {
                MessageBox.Show("There are still good men in this world!");
                Process.Start("http://p.yusukekamiyamane.com/");
            }
        }
      }
}
